<h1 class="title"><%= @user.username %>'s projects</h1

<div class="simple_form">
<%= form_tag %>
 <fieldset>
 <% for project in @projects %>
  <div class="form_item project_list">
   <label>
     <input type="checkbox" name="projects[<%= project.project_id %>]" value="1"<% if @user_projects[project.project_id] %> checked="checked"<% end %> /><%= project.name %></label>
  </div>
 <% end %>
 </fieldset>
 <div class="form_item">
  <input type="hidden" name="form_submitted" value="1" />
  <input type="submit" name="submit" value="Save" />
 </div>
<%= end_form_tag %>
</div>
